import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store=new Vuex.Store({
    state:{
        tabName: 'recuitIndex',
        phoneModal: false
    },
    mutations:{
        tabName(state,name){
            state.tabName = name
        },
        phoneModal(state,value){
            state.phoneModal = value
        }
    },
    actions:{
        changeTabName(context,name){
            context.commit('tabName',name)
        },
        changePhoneModal(context,value){
            context.commit('phoneModal',value)
        }
    }
})

export default store